package com.nbsaas.boot.customer.rest.convert;

import com.nbsaas.boot.customer.data.entity.CustomerGroup;
import com.nbsaas.boot.customer.api.domain.simple.CustomerGroupSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 客户分组-列表对象转换器
*/

public class CustomerGroupSimpleConvert implements Converter<CustomerGroupSimple, CustomerGroup> {




@Override
public CustomerGroupSimple convert(CustomerGroup source) {
    CustomerGroupSimple result = new CustomerGroupSimple();

                result.setShop(source.getShop());
                result.setName(source.getName());
                result.setId(source.getId());


    return result;
}

}